package com.javafactroy.kunlong.api.dto;

import lombok.Data;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

@Table(name = "tasklog")
@Data
@Accessors(chain = true)
public class ApiTaskLog implements Serializable {

    @Id
    Integer id;//` int(11) NOT NULL AUTO_INCREMENT COMMENT '用户日志标识',
    @Length(max = 10)
    String user;// varchar(32) COLLATE utf8_bin NOT NULL DEFAULT '0' COMMENT '用户标识',
    String ip;//   ip` varchar(512) COLLATE utf8_bin DEFAULT '0' COMMENT '用户ip',
    //@Column(name = "oprt_type")
    int oprtType;//` tinyint(4) NOT NULL DEFAULT '0' COMMENT '操作类型',
    String oprt;// varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '0' COMMENT '操作名称',
    String params;// varchar(512) COLLATE utf8_bin DEFAULT NULL,
    String code;// int(11) NOT NULL DEFAULT '0' COMMENT '返回码',
}
